package org.lq.ht.view.employee;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.FlowLayout;

public class emplyeeAdd extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					emplyeeAdd frame = new emplyeeAdd();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public emplyeeAdd() {
		setTitle("维护员工");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 364, 457);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(null, "\u4FE1\u606F\u6DFB\u52A0", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		contentPane.add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("员工编号：");
		lblNewLabel.setBounds(25, 24, 73, 22);
		panel.add(lblNewLabel);
		
		textField = new JTextField();
		textField.setEditable(false);
		textField.setBounds(108, 25, 66, 21);
		panel.add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("姓名：");
		lblNewLabel_1.setBounds(25, 60, 58, 15);
		panel.add(lblNewLabel_1);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(108, 57, 89, 21);
		panel.add(textField_1);
		
		JLabel lblNewLabel_2 = new JLabel("手机号：");
		lblNewLabel_2.setBounds(25, 93, 58, 15);
		panel.add(lblNewLabel_2);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(108, 90, 89, 21);
		panel.add(textField_2);
		
		JLabel lblNewLabel_2_1 = new JLabel("底薪：");
		lblNewLabel_2_1.setBounds(25, 131, 58, 15);
		panel.add(lblNewLabel_2_1);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(108, 128, 89, 21);
		panel.add(textField_3);
		
		JLabel lblNewLabel_2_2 = new JLabel("入职时间：");
		lblNewLabel_2_2.setBounds(25, 175, 73, 15);
		panel.add(lblNewLabel_2_2);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(108, 172, 89, 21);
		panel.add(textField_4);
		
		JLabel lblNewLabel_3 = new JLabel("备注：");
		lblNewLabel_3.setBounds(25, 221, 58, 26);
		panel.add(lblNewLabel_3);
		
		JTextPane textPane = new JTextPane();
		textPane.setBounds(87, 229, 159, 104);
		panel.add(textPane);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBounds(213, 12, 120, 121);
		panel.add(panel_2);
		panel_2.setLayout(null);
		
		JLabel lblNewLabel_4 = new JLabel("双击上传");
		lblNewLabel_4.setBounds(36, 51, 58, 15);
		panel_2.add(lblNewLabel_4);
		
		JPanel panel_1 = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel_1.getLayout();
		flowLayout.setHgap(10);
		contentPane.add(panel_1, BorderLayout.SOUTH);
		
		JButton btnNewButton = new JButton("保存");
		btnNewButton.setFont(new Font("宋体", Font.PLAIN, 18));
		panel_1.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("取消");
		btnNewButton_1.setFont(new Font("宋体", Font.PLAIN, 18));
		panel_1.add(btnNewButton_1);
	}
}
